<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="sj" uri="/struts-jquery-tags"%>

<table width="95%" style="margin-left: 10px;" cellpadding="0"
	cellspacing="0" id="box-table-a" summary="Employee Pay Sheet">
	<thead>
		<tr>
			<th width="5%" scope="col">STT</th>
			<th width="15%" scope="col">Ngày yêu cầu</th>
			<th width="15%" scope="col">Ngày muốn nhận</th>
			<th width="15%" scope="col">Điều phối xử lý</th>
			<th scope="15%">Trạng thái</th>
			<th scope="15%">Người gửi yêu cầu</th>
			
		</tr>
	</thead>
	<tbody>
		<%int i=0; %>
		<s:iterator value="lstSourcingRequest">
		<tr>
			<td><% i++; out.print(i); %></td>
			<!--<td><s:date name="requestDate" format="dd/MM/yyyy" /></td>-->
			
			
			<td><s:url id="SourcingRequest_viewChiTiet"
		     value="/SourcingRequest_viewChiTiet?id=%{sourcingRequestID}" /> <sj:a
		     title="Chi tiết yêu cầu nguồn hàng" 
		     href="%{SourcingRequest_viewChiTiet}" targets="container">
		    <s:date name="requestDate" format="dd/MM/yyyy" />
		    </sj:a></td>
		
			<td><s:date name="requirementDate" format="dd/MM/yyyy" /></td>
			<td><s:property value="employeeByCoordinator.account.accountInformation.fullName" /></td>
			<td><s:property value="statusOfRequest.statusName" /></td>
			<td><s:property value="employeeByHO.account.accountInformation.fullName" /></td>
		</tr>
	</s:iterator>

		<tr class="footer">
			<td colspan="2">&nbsp;</td>
			<td align="right">&nbsp;</td>
			<td colspan="3" align="right"><!--  PAGINATION START  -->
			<div class="pagination"><span class="previous-off">&laquo;
			Previous</span> <span class="active">1</span> <a href="#">2</a> <a href="#">3</a>
			<a href="#">4</a> <a href="#">5</a> <a href="#" class="next">Next
			&raquo;</a></div>
			<!--  PAGINATION END  --></td>
		</tr>
	</tbody>
</table>